<template>
	<view class="main">
		<view class="titleBox">
			<text class="title">{{textData.title}}</text>
			<text class="time">{{textData.updatetime}}</text>
		</view>
		<!-- <rich-text class="main-content" :nodes="content"></rich-text> -->
			<bctos-rich-text :nodes="content"></bctos-rich-text>
	</view>
</template>

<script>
	import http from '@/shopro/request/index'
	export default {
		data() {
			return {
				content:'',
				textData:{}
			};
		},
		props:{
			id:Number||String
		},
		onLoad(options) {
			// console.log(options);
			http('common.manualDetail',{id:options.id}).then(res=>{
				console.log(res);
				this.content = res.data.content
				this.textData = res.data
			})
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #fff;
		// box-sizing: border-box;
		padding: 0 14px;
	}
	.main-content {
		max-width: 90%;
		overflow: hidden;
	}
	.main {
		max-width: 95%;
		overflow: hidden;
	}
	
.titleBox {
	padding:17px 0px 0 ;
	box-sizing: border-box;
	border-top:1px solid #e5e5e5;
	font-family: MicrosoftYaHei;
	.title {
			font-size: 20px;
			font-weight: bold;
			color: #000;
			display: block;
	}
	.time {
		font-size: 13px;
		color: #999;
		margin-top: 10px;
		margin-bottom:20px ;
	}
}
</style>
